/**********************************************************************************/
/* snowymo: manipulate the virtual object based on gesture with the help of kinect*/
/**********************************************************************************/

#include "MVO.h"

MVO* mvo = new MVO;

void XN_CALLBACK_TYPE CB_NewUser(xn::UserGenerator& generator, XnUserID user, void* pCookie)
{
	mvo->XNNewUser(generator,user,pCookie);
}

void XN_CALLBACK_TYPE CB_LostUser(xn::UserGenerator& generator, XnUserID user, void* pCookie)
{
	printf("Lost user %d\n", user);
	mvo->XNLostUser(generator,user,pCookie);
}

void glutKeyboard (unsigned char key, int x, int y)
{
	mvo->keyboard(key,x,y);
}

void glutSpecial(int key,int x,int y)
{
	mvo->specialkeyboard(key,x,y);
}

extern void glutDisplay( void )
{
	mvo->display();
}

extern void glutIdle( void )
{
	mvo->idle();
}

extern void glutReshape( int w, int h )
{
	mvo->reshape(w,h);
}

int main(int argc, char **argv)
{
	mvo->Init(&argc,argv);
	mvo->MainLoop();
	return 0;
}